document.getElementById("free_back").focus()
function getList(){
	$.ajax({
		"url":"/mem_level/",
		"error":errorAjax,
		"complete":stop_load_pic,
		"beforeSend":start_load_pic,
		"dataType":"jsonp",
		"success":function(data){
			if(responseCheck(data)){
				/*返现参数设置*/
				$("#free_back").val(data.content.free_back)
			}
		}
	})
}
document.getElementById("change").onclick=function(){
	if(!confirm("请您确认您要设置的额度为：\n"+$("#free_back").val() +"%")){
		return false;
	}
	$.ajax({
		"url":"/free_back/",
		"error":errorAjax,
		"beforeSend":start_load_pic,
		"complete":stop_load_pic,
		"data":{"value":$("#free_back").val()},
		"type":"POST",
		"success":function(data){
			if(responseCheck(data)){
				showSuccessNotice()
			}
		}
	})
}
getList()
